<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnDealStatusInOrderTaskListTable extends AbstractMigration
{
    public function up()
    {
        $this->table('order_task_list')
            ->addColumn('deal_status', 'enum', ['values' => 'no_submit,to_submit,submitted,pending,processing,processed', 'default' => 'no_submit', 'null' => false, 'comment' => '处理状态'])
            ->save();
    }

    public function down()
    {
        $this->table('order_task_list')->removeColumn('deal_status')->save();
    }
}
